package net.imagine.core;

import java.io.Serializable;

/**
 * <pre>
 * 图片处理结果类，比如：
 * 处理结果（是否成功，为什么失败） ；
 * 图片访问的键值，
 *   键值一般为主图的键值，比如加水印就是加了水印后的图片名
 *   而压缩可能是原图的键值（因为大图和小图一般是在主图后加后缀生成，所以只需要原图的键值就可以）
 * </pre>
 * 
 * @author wqhui
 */
public class ImageProcessResult implements Serializable {
	private static final long serialVersionUID = -1589040778460063923L;
	protected ResultState resultState;
	protected String fileKey;
	protected long fileSize;
	protected String originalFilename;
	protected String ext;

	public ImageProcessResult(ResultState state) {
		this();
		this.resultState = state;
	}

	/**
	 * 无参用于pojo构造时访问
	 */
	private ImageProcessResult() {
		super();
	}

	public ResultState getResultState() {
		return resultState;
	}

	public void setResultState(ResultState resultState) {
		this.resultState = resultState;
	}

	public String getFileKey() {
		return fileKey;
	}

	public void setFileKey(String fileKey) {
		this.fileKey = fileKey;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	public String getOriginalFilename() {
		return originalFilename;
	}

	public void setOriginalFilename(String originalFilename) {
		this.originalFilename = originalFilename;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}
	
}
